package com.me.test.enums;


/**
 * The class Error code enum.
 */
public enum ErrorCodeEnum implements BaseEnum {

	OK("00000", "success"),
	A0001("A0001", "参数异常"),
	A0002("A0002", "Hibernate 参数异常"),
	A0101("A0101", "库存不足，商品ID为：%s"),
	B0001("B0001", "系统异常"),

	;

	private final String code;
	private final String msg;

	/**
	 * Msg string.
	 *
	 * @return the string
	 */
	@Override
	public String getMsg() {
		return msg;
	}

	/**
	 * Code int.
	 *
	 * @return the int
	 */
	@Override
	public String getCode() {
		return code;
	}

	ErrorCodeEnum(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}

}
